package org.hang.gift.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 接收用户输入的手机号，验证码，密码
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserRegDto {
    @NotBlank(message = "手机号不能为空")
    private String phone;
    @NotBlank(message = "手机验证码不能为空")
    private String phoneCode;
    @NotBlank(message = "密码不能为空")
    private String password;
}
